package com.shuyuntu.login.controller;

import com.shuyuntu.login.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * @program: test
 * @Date: 2018-06-27 11:37
 * @Author: Mr.Deng
 * @Description:
 */
@Controller
public class TemplatesController {

    @RequestMapping("/login")
    String login(Model model) {
        model.addAttribute("user", new User());
        return "login";
    }
}
